package com.itheima.tlias84.Service;

import com.itheima.tlias84.Po.InsertEmpParam;
import com.itheima.tlias84.Po.SelectEmpPageParam;
import com.itheima.tlias84.Po.UpdateEmpParam;
import com.itheima.tlias84.Util.ResultUtil;
import com.itheima.tlias84.dto.ReportEmpGenderDTO;
import com.itheima.tlias84.dto.SelectEmpDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpService {
    ResultUtil selectEmpByPage(@Param("p") SelectEmpPageParam param);

    int batchDelete(@Param("ids") List<Integer> ids);

    int insertEmp(@Param("p") InsertEmpParam param);

    int updateEmp(@Param("p") UpdateEmpParam param);

    SelectEmpDTO selectEmpById(@Param("id") Integer id);

    List<ReportEmpGenderDTO> countEmpByGender();

    ResultUtil countEmpJob();
    List<SelectEmpDTO> selectAll();

}
